home *** CD-ROM | disk | FTP | other *** search
- ACRLF ==> Add Carriage Return Line Feed
-
- Copyright (c) 1990, Glenn M. Belton, All Rights Reserved
-
- Address Comments and PAYMENT To (see COST below):
-
- Glenn M. Belton
- 13591 Rush Drive
- Woodbridge, VA 22192
- (703) 670-5535
-
-
- Usage: ACRLF Input_file Output_file Record_size [Start record] [Record quantity]
-
- Purpose: Modify database files where records are streamed begining to end
- without terminators.
-
- Function: Breaks file into indicated record size and
- appends a CR LF (HEX 0D 0A) sequence to the end of each record.
-
- Optional parameters; start record and record quantity allow groups
- of records to be copied to the output file.
-
- NOTE: Input file is opened in READ ONLY MODE and
- the Output file will NOT be overwritten.
-
- COST: If it's used in a business sense (i.e. if money is made off usage
- in any way, shape or form), the cost is $20.00 US.
- Otherwise, its free of usage charge. Source code cannot be sold for
- any reason or incorporated in anything that is for sale.
-
- Examples:
-
- Suppose you have a file containing X quantity of records.
-
- Using a file view utility you determine that the record size is
- 79 characters or bytes.
-
- to extract all records:
-
- acrlf file outputfile 79
-
- to extract the first 10 records:
-
- acrlf file outputfile 79 1 10
-
- to extract 10 records starting with the 11 record:
-
- acrlf file outputfile 79 11 10
-
- to extract the remaining records starting with the 22 record:
-
- acrlf file outputfile 79 22
-
-